package com.odobenus.service;

import java.util.Arrays;
import java.util.List;

import org.springframework.stereotype.Component;

import com.odobenus.vo.Config;

@Component
public class ConfigFetchMgr {

	public List<Config> getConfListByParameter(String app, String env, String version, boolean hasValue) {
		return Arrays.asList(build(),build());
	}

	private Config build() {
    	Config config=new Config();
    	config.setType(1);
    	config.setStatus(1);
    	config.setName("db");
    	config.setValue("XX");
    	config.setAppId(1L);
    	config.setVersion("1.0.0");
    	config.setUpdateTime("2020-03-12 12:12:12");
    	config.setEnvId(1L);
		return config;
    }
}
